package com.zidongxiangxi.rabbit.starter.entity.producer;

/**
 * 可靠发送配置
 *
 * @author chenxudong
 * @date 2020/11/08
 */
public class ReliableRabbitProducerRely {
	/**
	 * 是否开启可靠发送
	 */
	private boolean enabled = true;

	/**
	 * rabbitMq发送表
	 */
	private String tableName = "producer";

	/**
	 * 每次执行定时任务处理的mq数量
	 */
	private int batchSize = 20;

	/**
	 * 顺序消息配置
	 */
	private ReliableRabbitProducerSequence sequence = new ReliableRabbitProducerSequence();

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public int getBatchSize() {
		return batchSize;
	}

	public void setBatchSize(int batchSize) {
		this.batchSize = batchSize;
	}

	public ReliableRabbitProducerSequence getSequence() {
		return sequence;
	}

	public void setSequence(ReliableRabbitProducerSequence sequence) {
		this.sequence = sequence;
	}
}
